package projet_v1.items.ammo;
/**
 * This class will test the Ammo class 
 * 
 * @author Alexis LAURENT
 *
 */
import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

/**
 * 
 * @author Alexis Laurent
 *
 */
public class TestAmmo {

	private Ammo a;
	
	@Before
	public void setUp() throws Exception {
		a = new Ammo(CategoryAmmo.ROCKET);
	}

	@Test
	public void testGetRemainingAmmo() {
		assertEquals(2, a.getRemainingAmmo());
	}
	
	@Test
	public void testSetRemainingAmmo() {
		a.setRemainingAmmo(3);
		assertEquals(3, a.getRemainingAmmo());
	}

	@Test
	public void testGetCategoryAmmo() {
		assertEquals(CategoryAmmo.ROCKET, a.getCategoryAmmo());
	}

	@Test
	public void testDecreaseRemainingAmmo() {
		a.decreaseRemainingAmmo();
		assertEquals(1, a.getRemainingAmmo());
	}

	@Test
	public void testUse() {
		
	}
}
